#cpu
echo `hostname`
kubectl describe  ns|egrep  "limits.cpu"|awk '{print $3}' > cpu.txt
cpu=`cat  cpu.txt |xargs -l999|sed s#' '#+#g|sed s#k#000#g`
CPU=`echo "$cpu"|bc`
echo CPU=$CPU
#limits.memory
kubectl describe  ns|egrep  "limits.memory"|awk '{print $3}'|awk -F 'Gi' '{print $1}' > memory.txt
memory=`cat  memory.txt |xargs -l999|sed s#' '#+#g`
MEMORY=`echo "$memory"|bc`
echo MEMORY=$MEMORY
#echo `hostname`
